package com.edu.exam.entity.classmanagement.administrative;

import com.edu.exam.enums.core.StatusEnum;

/**
 * 班级状态枚举
 */
public enum ClassStatus implements StatusEnum {

    ACTIVE("ACTIVE", "启用", 1),
    SUSPENDED("SUSPENDED", "停用", 2),
    MERGED("MERGED", "已合并", 3);

    private final String code;
    private final String description;
    private final int order;

    ClassStatus(String code, String description, int order) {
        this.code = code;
        this.description = description;
        this.order = order;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public int getOrder() {
        return order;
    }


    @Override
    public String toString() {
        return this.code + "(" + this.description + ")";
    }
}